package com.cos.shop.services;

import com.cos.shop.common.ResponseResult;
import com.cos.shop.entity.User;

/**
 * @author: COS
 * @time: 2023/5/9 15:33
 * @description:
 */
public interface UserServices {
    /**
     * @author: COS
     * @time: 2023/5/9 15:33
     * @description: 使用用户名查询用户数据
     */
    User findUserByName(String username);
    ResponseResult findUserByNameByNewResult(String username);

    ResponseResult reg(User u);

    ResponseResult activate(String e, String c);

    ResponseResult sendMessage(String phone);

    ResponseResult doLogin(String username, String password);
}
